package com.llmm.eduService.service;

import com.llmm.bean.RestRet;
import com.llmm.eduService.entity.EduSubject;
import com.llmm.eduService.entity.EduSubjectTree;

import java.util.List;
import java.util.Map;

public interface EduSubjectService {
    //查询所有课程
    List<EduSubject> findAllSubjects();

    //树型结构，查询所有课程计划，
    List<EduSubjectTree> findAllTrees();

    //查询所有一级分类
    List<EduSubject> findAllRoot();

    //查询所有一级分类的二级分类的个数
    Map findChart();

    //根据一级分类查询二级分类
    List<EduSubject> findLeafByRoot(String parentId);
}
